import { createApp, defineAsyncComponent } from 'vue'
import pinia from '/@/stores'
import useRegis from '/@/Registered'
import Apps from './App.vue'
import router from './router'
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/reset.css';
import Direacives from '/@/directives/index'
import i18n from '/@/i18n/index';

import './Theme/index.scss'
import 'nprogress/nprogress.css'
import 'default-passive-events';
import '/@/assets/icons/fontsicon/iconfont.css'
import '/@/assets/icons/fontsicon/demo.css'
import '/@/assets/icons/fontsicon/iconfont.js'




const app = createApp(Apps)


// 自定义指令
Direacives(app)

// 注册组件
useRegis(app)

// 全局组件
app.component('navTabar_chilren', defineAsyncComponent(() => import('/@/MainPage/navTabar/navTabar_children/index.vue')))
app.use(router)
app.use(Antd)
app.use(pinia)
app.use(i18n)
app.mount('#app')
